package com.burstly.lib.ui;

import com.burstly.lib.util.LoggerExt;
import java.lang.ref.Reference;
import java.lang.ref.WeakReference;

final class Autorefresh
  implements Runnable
{
  private final Reference<BurstlyView> mBview;
  private int mServerSideSessionLength;

  Autorefresh(BurstlyView paramBurstlyView)
  {
    this.mBview = new WeakReference(paramBurstlyView);
  }

  int getServerSideSessionLength()
  {
    return this.mServerSideSessionLength;
  }

  public void run()
  {
    BurstlyView localBurstlyView = (BurstlyView)this.mBview.get();
    if (localBurstlyView == null)
      return;
    BurstlyView.sLog.logInfo(localBurstlyView.mBurstlyViewId, "Sending autorefresh request...", new Object[0]);
    localBurstlyView.notifyAboutToRequest();
    localBurstlyView.startRequest();
  }

  void setServerSideSessionLength(int paramInt)
  {
    this.mServerSideSessionLength = paramInt;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.ui.Autorefresh
 * JD-Core Version:    0.6.2
 */